package com.ruoyi.bizsys.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户推送记录对象 app_user_push
 *
 * @author african-loan
 * @date 2021-09-10
 */
public class AppUserPush extends BaseEntity
{
    private static final long serialVersionUID=1L;

    //推送url
    public static final String PUSH_URL_HOME = "Home";

    //推送类型
    public static final String PUSH_TYPE_SCORE = "Score";

    /** 序号 */
    private Long id;

    /** userId */
    @Excel(name = "userId")
    private String userId;

    /** 推送类型 */
    @Excel(name = "推送类型")
    private String pushType;

    /** 推送内容 */
    @Excel(name = "推送内容")
    private String pushContent;

    /** 推送路径 */
    @Excel(name = "推送路径")
    private String pushUrl;

    /** 状态 */
    @Excel(name = "状态")
    private String state;

    /** 是否发送 */
    @Excel(name = "是否发送")
    private Integer isSend;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserId()
    {
        return userId;
    }
    public void setPushType(String pushType)
    {
        this.pushType = pushType;
    }

    public String getPushType()
    {
        return pushType;
    }
    public void setPushContent(String pushContent)
    {
        this.pushContent = pushContent;
    }

    public String getPushContent()
    {
        return pushContent;
    }
    public void setPushUrl(String pushUrl)
    {
        this.pushUrl = pushUrl;
    }

    public String getPushUrl()
    {
        return pushUrl;
    }
    public void setState(String state)
    {
        this.state = state;
    }

    public String getState()
    {
        return state;
    }
    public void setIsSend(Integer isSend)
    {
        this.isSend = isSend;
    }

    public Integer getIsSend()
    {
        return isSend;
    }

    @Override
    public String toString(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id",getId())
                .append("userId",getUserId())
                .append("pushType",getPushType())
                .append("pushContent",getPushContent())
                .append("pushUrl",getPushUrl())
                .append("state",getState())
                .append("isSend",getIsSend())
                .append("remark",getRemark())
                .append("createBy",getCreateBy())
                .append("createTime",getCreateTime())
                .append("updateBy",getUpdateBy())
                .append("updateTime",getUpdateTime())
                .toString();
    }
}